package my.edu.common.domain;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class PageDTO {
    @NotNull(message = "page不能为空")
    @Min(value = 1, message = "page最小值为1")
    private Integer page;
    @NotNull(message = "size不能为空")
    @Min(value = 1, message = "size最小值为1")
    private Integer size;
}
